package kr.hkit.powerjava.chapter12.pro;

public class ShapesTest {
	public static void main(String[] args) {
		Shapes[] arrShapes = new Shapes[3];
		arrShapes[0] = new Ellipse();
		arrShapes[1] = new Rectangles();
		arrShapes[2] = new Triangles();
		
		for (int i = 0; i < arrShapes.length; i++) {
			((TwoDimShape) arrShapes[i]).getArea();
		}
	}
}
